package com.byb.server.service.util;

/**
 * Factory  for Strategy.
 */
public class StrategyFactory {

    /**
     * @param state
     * 0 : 总分排序
     * 1 ：赔偿额度排序
     * 2 ：保障范围得分排序
     * @return
     */
    public static SortStrategy getSortStrategy(Integer state) {
        switch (state){
            case 0:
                return new sortByScore();
            case 1:
              return new SortByMoney();
            case 2:
              return  new SortByProtectScope();
        }
        return null;
    }
}
